<?php

namespace Summer\Hjd\Http\Controllers;

use Illuminate\Routing\Controller;
use Summer\Hub\Http\Controllers\Traits\ApiReturn;
use Summer\Hjd\Models\Settings as HjdSettings;
use Config;

class SettingController extends Controller
{
    use ApiReturn;

    /**
     * 热更新设置
     */
    public function hot()
    {
        $hjd_settings= HjdSettings::instance();
        //充值配置
        $settings['hot_version']=$hjd_settings->hot_version;
        $settings['hot_app']=$hjd_settings->hot_app->path??'';
        $settings['hot_wgt']=$hjd_settings->hot_wgt->path??'';
        $return['settings']=$settings;
        return $this->apiSuccess('操作成功',$return);
    }
}
